﻿package FP 
{
	import flash.display.MovieClip;
	
	/**
	 * ...
	 * @author Ty Kimmey
	 */
	public class GameElement extends MovieClip 
	{
		protected var speed:int = 5;
		protected var game:Game;
		protected var objSpeed:int = 10;
		
		
		public function GameElement(aGame:Game) 
		{
			super();
			game = aGame;
		}
		
		public function objectMove(): void
		{
			y += objSpeed;
		}
		
		public function spawn()
		{
			y = -300; x = (Math.random() * (parent as Document).stage.stageWidth);
		}
		
		
		
	}

}